import { $request } from "@/utils/request.js";
import service  from '@/utils/request/index.js'

/**
 * 商品列表
 */
/**
 * 商品列表
 * @param {*} currentNo 当前页号 
 * @param {*} pageSize  每页记录条数
 */
 export const RequestProduct = (currentNo=1,pageSize=10)=>{
	return service.request({
		url:'/api/shop/list',
		method:'get',
		data:{
		    pageNo:currentNo,
		    pageSize
		  }
	})
}

/**
 * banner
 */
export const RequestBanner = ()=>{
    return service.request({
      url:'/api/shop/banner',
      method:'get'
    })
}


/**
 * 详情面
 */
export const ReqeustProductDetail = (id)=>{
  return $request({
    url:'/api/shop/find',
    method:'get',
    data:{id}
  })
}
